﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WAI
{
    public class Step_Target : InternalWizardPage
    {
        private RadioButton new_website;
        private RadioButton existing_website;
        private System.ComponentModel.IContainer components = null;

        public Step_Target()
        {
            // This call is required by the Windows Form Designer.
            InitializeComponent();

            // TODO: Add any initialization after the InitializeComponent call
        }

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose(disposing);
        }

        #region Designer generated code
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.new_website = new System.Windows.Forms.RadioButton();
            this.existing_website = new System.Windows.Forms.RadioButton();
            this.SuspendLayout();
            // 
            // Banner
            // 
            this.Banner.Size = new System.Drawing.Size(810, 64);
            this.Banner.Subtitle = "Please select if the Web Application must be installed in a new or an existing website";
            this.Banner.Title = "Target";
            // 
            // new_website
            // 
            this.new_website.AutoSize = true;
            this.new_website.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.new_website.Location = new System.Drawing.Point(36, 116);
            this.new_website.Name = "new_website";
            this.new_website.Size = new System.Drawing.Size(276, 17);
            this.new_website.TabIndex = 3;
            this.new_website.TabStop = true;
            this.new_website.Text = "Install the Web Applicytion in a new website";
            this.new_website.UseVisualStyleBackColor = true;
            this.new_website.CheckedChanged += new System.EventHandler(this.new_website_CheckedChanged);
            // 
            // existing_website
            // 
            this.existing_website.AutoSize = true;
            this.existing_website.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.existing_website.Location = new System.Drawing.Point(36, 182);
            this.existing_website.Name = "existing_website";
            this.existing_website.Size = new System.Drawing.Size(304, 17);
            this.existing_website.TabIndex = 4;
            this.existing_website.TabStop = true;
            this.existing_website.Text = "Install the Web Application in an existing website";
            this.existing_website.UseVisualStyleBackColor = true;
            this.existing_website.CheckedChanged += new System.EventHandler(this.existing_website_CheckedChanged);
            // 
            // Step_Target
            // 
            this.Controls.Add(this.new_website);
            this.Controls.Add(this.existing_website);
            this.Name = "Step_Target";
            this.Size = new System.Drawing.Size(810, 463);
            this.SetActive += new System.ComponentModel.CancelEventHandler(this.Step_Target_SetActive);
            this.Controls.SetChildIndex(this.existing_website, 0);
            this.Controls.SetChildIndex(this.new_website, 0);
            this.Controls.SetChildIndex(this.Banner, 0);
            this.ResumeLayout(false);
            this.PerformLayout();

        }
        #endregion

        private void Step_Target_SetActive(object sender, System.ComponentModel.CancelEventArgs e)
        {
            SetWizardButtons(WizardButtons.Back | WizardButtons.Next);
        }

        private void new_website_CheckedChanged(object sender, EventArgs e)
        {
            if (this.new_website.Checked == true)
            {
                //Set RequireNewWebsite = 1
            }
        }

        private void existing_website_CheckedChanged(object sender, EventArgs e)
        {
            if (this.existing_website.Checked == true)
            {
                //Set RequireNewWebsite = 0
            }
        }
    }
}
